import React, { Component } from 'react'
import World from './world'
import MainContext from './context'
export class hello extends Component {
  static contextType = MainContext
  render() {
    return (
      <div className='p'>
        <h2>我是父级组件</h2>
        hello组件 {this.context}
        <World></World>
      </div>
    )
  }
}

export default hello